<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
<!DOCTYPE html>
<html lang="en">
<head>
    <base href="<%=basePath%>">
    <!-- 图片上传样式 -->
    <link rel="stylesheet" href="static/ace/css/indexfile.css"/>
    <!-- 下拉框 -->
    <link rel="stylesheet" href="static/ace/css/chosen.css" />
    <!-- jsp文件头和头部 -->
    <%@ include file="../../system/index/top.jsp"%>
</head>
<body class="no-skin">
<!-- /section:basics/navbar.layout -->
<div class="main-container" id="main-container">
    <!-- /section:basics/sidebar -->
    <div class="main-content">
        <div class="main-content-inner">
            <div class="page-content">
                <div class="row">
                    <div class="col-xs-12">
                        <form action="${actionUrl}" name="form" id="form" method="post" enctype="multipart/form-data">
                            <input type="hidden" name="id" id="id" value="${portalUserInfo.id}"/>
                            <input type="hidden" name="actionUrl" id="actionUrl" value="${actionUrl}"/>
                            <input type="hidden" name="userId" id="userId" value="${userId}"/>
                            <div id="zhongxin" style="padding-top: 13px;">
                                <table id="table_report" class="table table-striped table-bordered table-hover">
                                    <tr>
                                        <td style="width:20%;text-align: right;padding-top: 13px;"><font color="red">*</font>用户头像：</td>
                                        <td style="width:80%;">
                                            <div>
                                                <section class=" img-section" style="margin-left: 21px;">
                                                    <div class="z_photo upimg-div clear" id="z_photo-one">
                                                        <section class="z_file fl">
                                                            <c:if test="${not empty portalUserInfo.userIcon }">
                                                                <img src="${portalUserInfo.userIcon }" class="add-img">
                                                            </c:if>
                                                            <c:if test="${empty portalUserInfo.userIcon }">
                                                                <img src="static/images/sctp.png" class="add-img">
                                                            </c:if>
                                                            <input type="file" id="pictureAddressOne" name="pictureAddressOne" class="file" accept="image/jpg,image/jpeg,image/png,image/bmp" multiple />
                                                        </section>
                                                    </div>
                                                </section>
                                            </div>
                                            <aside class="mask works-mask" id="works-mask-one">
                                                <div class="mask-content">
                                                    <p class="del-p">您确定要删除该图片吗？</p>
                                                    <p class="check-p"><span class="del-com wsdel-ok" id="wsdel-ok-one">确定</span><span class="wsdel-no" id="wsdel-no-one">取消</span></p>
                                                </div>
                                            </aside>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width:20%;text-align: right;padding-top: 13px;"><font color="red">*</font>用户昵称：</td>
                                        <td style="width:80%;"><input type="text" name="nickName" id="nickName" minlength="2" maxlength="6" value="${portalUserInfo.nickName}" <c:if test="${actionUrl eq 'admin/portalUserInfo/edit'}">readonly="readonly"</c:if> title="用户昵称" style="width:98%;"/></td>
                                    </tr>
                                    <tr>
                                        <td style="width:20%;text-align: right;padding-top: 13px;"><font color="red">*</font>登录手机号：</td>
                                        <td style="width:80%;"><input type="text" name="loginPhoneNumber" id="loginPhoneNumber" value="${portalUserInfo.loginPhoneNumber}" placeholder="这里输入用户手机号" title="用户手机号" style="width:98%;"/></td>
                                    </tr>
                                    <%--<tr>
                                        <td style="width:20%;text-align: right;padding-top: 13px;"><font color="red">*</font>登录密码：</td>
                                        <td style="width:80%;"><input type="text" onfocus="this.type='password'" name="loginPassword" id="loginPassword" value="${portalUserInfo.loginPassword}" placeholder="这里输入登录密码" title="登录密码" style="width:98%;"/></td>
                                    </tr>
                                    <tr>
                                        <td style="width:20%;text-align: right;padding-top: 13px;"><font color="red">*</font>登录确认密码：</td>
                                        <td style="width:80%;"><input type="text" onfocus="this.type='password'" name="reLoginPassword" id="reLoginPassword" value="${portalUserInfo.loginPassword}" placeholder="这里输入登录确认密码" title="登录确认密码" style="width:98%;"/></td>
                                    </tr>--%>
                                    <tr>
                                        <td style="width:20%;text-align: right;padding-top: 13px;">个性签名：</td>
                                        <td style="width:80%;"><input type="text" name="signature" id="signature" value="${portalUserInfo.signature}" maxlength="16" placeholder="这里输入用户个性签名" title="用户个性签名" style="width:98%;"/></td>
                                    </tr>
                                    <tr>
                                        <td style="width:20%;text-align: right;padding-top: 13px;">真实姓名：</td>
                                        <td style="width:80%;"><input type="text" name="realName" id="realName" value="${portalUserInfo.realName}" placeholder="这里输入真实姓名" title="真实姓名" style="width:98%;"/></td>
                                    </tr>
                                    <tr>
                                        <td style="width:20%;text-align: right;padding-top: 13px;">身份证号：</td>
                                        <td style="width:80%;"><input type="text" name="idNumber" id="idNumber" value="${portalUserInfo.idNumber}" placeholder="这里输入身份证号" title="身份证号" style="width:98%;"/></td>
                                    </tr>
                                    <tr>
                                        <td style="width:20%;text-align: right;padding-top: 13px;">持卡人姓名：</td>
                                        <td style="width:80%;"><input type="text" name="bankCardName" id="bankCardName" value="${portalUserInfo.bankCardName}" placeholder="这里输入持卡人姓名" title="持卡人姓名" style="width:98%;"/></td>
                                    </tr>
                                    <tr>
                                        <td style="width:20%;text-align: right;padding-top: 13px;">银行卡号：</td>
                                        <td style="width:80%;"><input type="text" name="bankCardNumber" id="bankCardNumber" value="${portalUserInfo.bankCardNumber}" placeholder="这里输入银行卡号" title="银行卡号" style="width:98%;"/></td>
                                    </tr>
                                    <tr>
                                        <td style="width:20%;text-align: right;padding-top: 13px;">开户银行：</td>
                                        <td style="width:80%;" id="bankCodeSelect">
                                            <select class="chosen-select form-control" name="bankCode" id="bankCode" data-placeholder="这里选择开户银行" style="width:120px;">
                                                <option value="" <c:if test="${empty portalUserInfo.bankCode}">selected</c:if>></option>
                                                <c:forEach items="${bankDictList}" var="bankDict" >
                                                    <option value="${bankDict.bankCode}" <c:if test="${portalUserInfo.bankCode eq bankDict.bankCode}">selected</c:if>>${bankDict.bankName}</option>
                                                </c:forEach>
                                            </select>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width:20%;text-align: right;padding-top: 13px;">银行预留手机号：</td>
                                        <td style="width:80%;"><input type="text" name="bankPhoneNumber" id="bankPhoneNumber" value="${portalUserInfo.bankPhoneNumber}" placeholder="这里输入银行预留手机号" title="银行预留手机号" style="width:98%;"/></td>
                                    </tr>
                                    <tr>
                                        <td style="width:20%;text-align: right;padding-top: 13px;">开户支行地址：</td>
                                        <td style="width:80%;">
                                            <%--<div data-toggle="distpicker">
                                                <select id="province" name="province" data-province="江苏省"></select>
                                                <select id="city" name="city" data-city="苏州市"></select>
                                                <select id="district" name="district" data-district="吴中区"></select>
                                            </div>--%>
                                            <select id="province" name="province">
                                                <option selected value="" <c:if test="${empty portalUserInfo.province}">selected</c:if>>选择所在的省份</option>
                                                <c:forEach items="${provinces}" var="item" varStatus="status">
                                                    <option value="${item.regionId}" <c:if test="${item.regionId eq portalUserInfo.province}">selected</c:if>>${item.regionName}</option>
                                                </c:forEach>
                                            </select>
                                            <select id="city" name="city">
                                                <option selected value="" <c:if test="${empty portalUserInfo.city}">selected</c:if>>请选择所在的市</option>
                                                <c:if test="${not empty portalUserInfo.city}">
                                                    <option value="${portalUserInfo.city}" selected>${portalUserInfo.cityName}</option>
                                                </c:if>
                                            </select>
                                            <select id="district" name="district">
                                                <option selected value="" <c:if test="${empty portalUserInfo.district}">selected</c:if>>请选择所在的区/县</option>
                                                <c:if test="${not empty portalUserInfo.district}">
                                                    <option value="${portalUserInfo.district}" selected>${portalUserInfo.districtName}</option>
                                                </c:if>
                                            </select>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width:20%;text-align: right;padding-top: 13px;">开户支行：</td>
                                        <td style="width:80%;"><input type="text" name="bankSubBranch" id="bankSubBranch" value="${portalUserInfo.bankSubBranch}" placeholder="这里输入开户支行" title="开户支行" style="width:98%;"/></td>
                                    </tr>
                                    <tr>
                                        <td style="width:20%;text-align: right;padding-top: 13px;">用户等级：</td>
                                        <%--<td style="width:80%;">
                                            <input type="text" name="userLevel" id="userLevel" value="${portalUserInfo.userLevel}" placeholder="这里输入用户等级" title="用户等级" style="width:40%;"/>
                                            &nbsp;&nbsp;&nbsp;&nbsp;<label style="color: red;">（如果不填默认为1）</label>
                                        </td>--%>
                                        <td style="width:80%;" id="userLevelSelect">
                                            <select class="chosen-select form-control" name="userLevel" id="userLevel" data-placeholder="这里选择用户等级" style="width:120px;">
                                                <option value="" <c:if test="${empty portalUserInfo.userLevel}">selected</c:if>></option>
                                                <c:forEach items="${userLevelDictList}" var="userLevelDict" >
                                                    <option value="${userLevelDict.userLevel}" <c:if test="${userLevelDict.userLevel eq portalUserInfo.userLevel}">selected</c:if>>${userLevelDict.userLevelName}</option>
                                                </c:forEach>
                                            </select>
                                            <label style="color: red;">（如果不选默认为V1）</label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width:20%;text-align: right;padding-top: 13px;">用户余额：</td>
                                        <td style="width:80%;"><input type="text" name="money" id="money" value="${portalUserInfo.money}金币" readonly="readonly" title="用户余额" style="width:98%;"/></td>
                                    </tr>
                                    <tr>
                                        <td style="width:20%;text-align: right;padding-top: 13px;">用户类型：</td>
                                        <td style="width:80%;" id="userTypeSelect">
                                            <select class="chosen-select form-control" name="userType" id="userType" data-placeholder="这里选择用户类型" style="width:120px;">
                                                <c:forEach items="${userTypeList}" var="userTypeItem" >
                                                    <option value="${userTypeItem.value}" <c:if test="${userTypeItem.value eq portalUserInfo.userType}">selected</c:if>>${userTypeItem.description}</option>
                                                </c:forEach>
                                            </select>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width:20%;text-align: right;padding-top: 13px;">是否禁用：</td>
                                        <td style="width:80%;" id="userStatusSelect">
                                            <select class="chosen-select form-control" name="userStatus" id="userStatus" data-placeholder="这里选择是否禁用" style="width:120px;">
                                                <c:forEach items="${userStatusList}" var="userStatusItem" >
                                                    <option value="${userStatusItem.value}" <c:if test="${userStatusItem.value eq portalUserInfo.userStatus}">selected</c:if>>${userStatusItem.description}</option>
                                                </c:forEach>
                                            </select>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="text-align: center;" colspan="10">
                                            <a class="btn btn-mini btn-primary" onclick="save();">保存</a>
                                            <a class="btn btn-mini btn-danger" onclick="top.Dialog.close();">取消</a>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                            <div id="zhongxin2" class="center" style="display:none"><br/><br/><br/><br/><img src="static/images/jiazai.gif" /><br/><h4 class="lighter block green"></h4></div>
                        </form>
                    </div>
                    <!-- /.col -->
                </div>
                <!-- /.row -->
            </div>
            <!-- /.page-content -->
        </div>
    </div>
    <!-- /.main-content -->
</div>
<!-- /.main-container -->
<!-- basic scripts -->
<!-- 页面底部js¨ -->
<%@ include file="../../system/index/foot.jsp"%>
<!-- ace scripts -->
<script src="static/ace/js/ace/ace.js"></script>
<!-- inline scripts related to this page -->
<!-- 模态框 -->
<script src="static/ace/js/bootbox.js"></script>
<!-- 下拉框 -->
<script src="static/ace/js/chosen.jquery.js"></script>
<!-- 日期框 -->
<script type="text/javascript" src="<%=basePath%>plugins/My97DatePicker_new/WdatePicker.js"></script>
<!--参数校验-->
<script type="text/javascript" src="static/js/public/validate.js"></script>
<!-- 提示框 -->
<script type="text/javascript" src="static/js/jquery.tips.js"></script>
<!-- 富文本编辑器 -->
<script type="text/javascript" src="plugins/ueditor/ueditor.config.js"></script>
<script type="text/javascript" src="plugins/ueditor/ueditor.all.min.js"></script>
<script type="text/javascript" src="plugins/ueditor/lang/zh-cn/zh-cn.js"></script>
<!-- 省市区三级联动js插件库 -->
<script src="static/js/distpicker/js/distpicker.data.js"></script>
<script src="static/js/distpicker/js/distpicker.js"></script>
<script src="static/js/distpicker/js/main.js"></script>
<!-- 本业务js -->
<script type="text/javascript" src="static/js/admin/portaluser/portalUserInfo/edit.js"></script>
</body>
<script type="text/javascript">
    $(top.hangge());
    var actionUrl = '${actionUrl}';
    var path = "${pageContext.request.contextPath}";
</script>
</html>
